<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>申请开店</title>
<script type="text/javascript" src="../../Res/JS/jquery-1.10.2.js"></script>
<link rel="stylesheet" href="../../Res/CSS/setup-p.css">
<script type="text/javascript" src="../../js/cityJson.js"></script>
<script type="text/javascript" src="../../js/citySet.js"></script>
<script type="text/javascript" src="../../Res/JS/base.js"></script>
</head>
<body>
	<img src="../../Res/images/banner-app.png">
	<form id="setup" class="form" action="../../meal/adds" method="post" enctype="multipart/form-data">
		<p>申请开店</p>
		<div>
			<input id="manUser"
				name="manUser" type="text" maxlength="16"
				placeholder="开店人账号" required="" />
			<div class="hide"></div>
		</div>
		
		<div>
			<input id="manPwd"
				name="manPwd" type="text" maxlength="16"
				placeholder="开店人密码" required="" />
			<div class="hide"></div>
		</div>
		
		<div>
			<input id="mealName"
				name="mealName" type="text" maxlength="16"
				placeholder="店铺名称" required="" />
			<div class="hide"></div>
		</div>
		<div>
			<input id="mealPerson"
				name="mealPerson" type="text" placeholder="店铺联系人姓名" required="" />
			<div class="hide"></div>
		</div>

		<div>
			<input id="city"
				name="mealSite" type="text" minlength="6" maxlength="20"
				placeholder="店铺地址" required="" />
			<div class="hide"></div>
		</div>
		
		<div>
			<input id="pic"
				name="pic" type="file" minlength="6" maxlength="20"
				placeholder="店铺logo" required="" />
			<div class="hide"></div>
		</div>
		
		<div>
			<input id="mealPhone"
				name="mealPhone" type="text" minlength="11" maxlength="11"
				placeholder="联系人电话" required="" />
			<div class="hide"></div>
		</div>
		
		<div class="form-item clrfix"> 
			<button id="captcha_img">获取验证码</button>
	       <input id="captcha_input" class="inputbox input-captcha" type="text" name="yzm" minlength="4" maxlength="4" placeholder="验证码" autocomplete="off" required="" /> 
	    </div>
		
		<div>
			<select class="typename" name="mealTypeId" id="mealTypeId">
				<option>请选择开店类型</option>
			</select>
			
			<div class="hide"></div>
		</div>
		<button class="submit" id=btn1 type="submit">我要开店</button>
	</form>
	<script type="text/javascript">
			$("#city").click(function (e) {
				SelCity(this,e);
			});
			
			$(function(){
			 	  //验证码
				  $("#captcha_img").click(function(){
					  var url = getRootPath()+"meal/foodYZM.action";
					  var mealPhone = $("#mealPhone").val();
					  var data ={"mealPhone" :mealPhone}; 
					    $.post(url, data, function(mes) {
					    }, "json");
				  });
			  });
			
	</script>
	<script type="text/javascript" src="../../Res/JS/setup-p.js"></script>
</body>
</html>